import 'package:json_annotation/json_annotation.dart';

part 'merchant_info_response.g.dart';

///卡信息
@JsonSerializable()
class MerchantInfoRepsonse extends Object {
  ///城市
  @JsonKey(name: 'city', defaultValue: '')
  String city;

  ///公司
  @JsonKey(name: 'company', defaultValue: '')
  String company;

  ///房屋
  @JsonKey(name: 'house', defaultValue: '')
  String house;

  ///街道
  @JsonKey(name: 'street', defaultValue: '')
  String street;

  ///邮编
  @JsonKey(name: 'zip', defaultValue: '')
  String zip;

  MerchantInfoRepsonse(
    this.city,
    this.company,
    this.house,
    this.street,
    this.zip,
  );

  factory MerchantInfoRepsonse.fromJson(Map<String, dynamic> srcJson) =>
      _$MerchantInfoRepsonseFromJson(srcJson);

  Map<String, dynamic> toJson() => _$MerchantInfoRepsonseToJson(this);
}
